function define(name,arr,fun){

    if(typeof name === "string"){

    }else{
        fun = arr;
        arr = name;
        name = "";
    }
    var fns = [];
    for (var i = 0; i < arr.length; i++) {
        var name = arr[i];
        var $tmp = require(name);
        fns.push($tmp);
    }
    var scriptObj = fun.apply({
        name:name,
        scriptType: "lib"
    },fns);
    return scriptObj;
};